package com.bamboo.servicebase.exceptionhandler;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 自定义异常
 * @author jack.wu
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class BambooException extends RuntimeException {

    /**
     * 状态码
     */
    private int code;

    /**
     * 异常信息
     */
    private String msg;

    public BambooException(String msg) {
        this.msg = msg;
    }
}
